import { userPostJson } from '@/api/apiTool'

//获取标注信息【图像宽搞，及标注等消息】
export function getTaggingMsgByObjid(data, success, showMsg = false) {
    let url = "/front/Tag/getTaggingMsgByObjid"
    userPostJson(url, data, success, showMsg)
}

//新建标注
export function createTag(data, success, showMsg = false) {
    let url = "/front/Tag/createTag"
    userPostJson(url, data, success, showMsg)
}

//通过素材objid查找标注
export function getTagByMateObjid(data, success, showMsg = false) {
    let url = "/front/Tag/getTagByMateObjid"
    userPostJson(url, data, success, showMsg)
}

//查询素材其他信息
export function getTagOtherMsg(data, success, showMsg = false) {
    let url = "/front/Tag/getTagOtherMsg"
    userPostJson(url, data, success, showMsg)
}

//更新素材信息
export function updateTagOtherMsg(data, success, showMsg = false) {
    let url = "/front/Tag/updateTagOtherMsg"
    userPostJson(url, data, success, showMsg)
}

//上传标注后的图片【base64】
export function uploadBase64Img(data, success, showMsg = false) {
    let url = "/front/Tag/uploadBase64Img"
    userPostJson(url, data, success, showMsg)
}

//获取标注列表
export function getBeenSaveTagList(data, success, showMsg = false) {
    let url = "/front/Tag/getBeenSaveTagList"
    userPostJson(url, data, success, showMsg)
}

//增加访问量
export function addTagView(data, success, showMsg = false) {
    let url = "/front/Tag/addTagView"
    userPostJson(url, data, success, showMsg)
}

//通过标注查找专家信息及访问量等
export function getExpertMsgByTagId(data, success, showMsg = false) {
    let url = "/front/Tag/getExpertMsgByTagId"
    userPostJson(url, data, success, showMsg)
}